$(function(){
	//页面加上查询条件
	showCondition(true);
	paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
	var drgsQuota = [{
				code : 'drgs',
				name : 'DRG指标',
				data : [{
							name : "产能指标",
							data : [ {
								     "quotaCode":"CMI", 
							         "quotaName":"CMI值"
							        },{
					                	"quotaCode":"DRGCount",
					                	"quotaName":"DRGs组数"
					                },{
					                	"quotaCode":"TotalWeight", 
					                	"quotaName":"总权重"
					                },{
					                	"quotaCode":"InCaseCnt", 
					                	"quotaName":"入组病例"
					                }]
						}, {
							name : "效率指标",
							data : [{
										"quotaCode" : "TimeEff",
										"quotaName" : "时间消耗指数"
									}, {
										"quotaCode" : "FeeEff",
										"quotaName" : "费用消耗指数"
									}]
						}, {
							name : "安全指标",
							data : [{
										"quotaCode" : "Risk1Ratio",
										"quotaName" : "低风险死亡率",
										"quotaType":"ratio"
									}, {
										"quotaCode" : "Risk2Ratio",
										"quotaName" : "中低风险死亡率",
										"quotaType":"ratio"
									}]
						}]
			}];				
	//加载开始界面正在加载数据样式
	
	//全院指标 (1.drgs 2.All)
//	loadyzhangAllQuota("adrg","All",drgsQuota,"yzhangAllDrgsQuotasId","yzhangalldrgs-ul");
	loadHospQuota("adrg", drgsQuota, "yzhangAllDrgsQuotasId");
	//**************加载drgs指标详情部分**********************	
	//加载科室组drgs指标详情
	loadDepGroupDrgsQuota(drgsQuota,"DRGs","yzhangAdrgDrgsQuotasIda","yzhangadrgdrgs-ul");
    //为下半部分加载数据 
	loadDepGroupQuotaData(drgsQuota,"drgs","","loadDrgsToDep");	
    //移除正在加载数据部分
   $(document).ajaxStop(function(){
		
	  });	
});

function loadDrgsToDep(code,desc,monitorType){
	 var param = jQuery.extend(true,{},paramTabPage[tabId]);
	 param.drgCode = code;
	 param.monitorType=monitorType;
	openTab('/pages/yzHome/yzhangHomeDisToDep.jsp',code+'|科室','drgtodepyz'+code,'drgtodepyz'+code,param);

}



